<?php
$fp_work = fopen("../../config/work_id.txt",'r');
$work_id = fgets($fp_work);
fclose($fp_work);

//导入数据库配置文件
	require("../../conn/conn.php");
	$sql_insert = "UPDATE `work_info` SET `work_status`='待上门' where `work_id` = $work_id";
	
	if(mysqli_query($conn,$sql_insert)){
		echo"<script type="."\""."text/javascript"."\"".">"."window.alert"."("."\""."已确认，学生将在指定时间上门家教"."\"".")".";"."</script>";
		echo"<script type="."\""."text/javascript"."\"".">"."window.location="."\""."../par_page/html/我发布的.php"."\""."</script>";
	}else{
		echo "bad";
	}
